@(pages: List[String],
  repository: gitbucket.core.service.RepositoryService.RepositoryInfo,
  hasWritePermission: Boolean)(implicit context: gitbucket.core.controller.Context)
@import context._
@import gitbucket.core.view.helpers._
@html.main(s"Pages - ${repository.owner}/${repository.name}", Some(repository)){
  @html.menu("wiki", repository){
    <ul class="nav nav-tabs fill-width pull-left">
      <li>
        <h1 class="wiki-title"><span class="muted">Pages</span></h1>
      </li>
      <li class="pull-right">
        <div class="btn-group">
          @if(hasWritePermission){
            <a class="btn btn-small" href="@url(repository)/wiki/_new">New Page</a>
          }
        </div>
      </li>
    </ul>
    <ul class="pull-left">
      @pages.map { page =>
        <li><a href="@url(repository)/wiki/@urlEncode(page)">@page</a></li>
      }
    </ul>
  }
}